<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>PhaseTest</title>

<link rel="stylesheet"
	href="http://code.jquery.com/qunit/qunit-1.15.0.css">
<script src="http://code.jquery.com/qunit/qunit-1.15.0.js"></script>
<script src="../../main/js/Phase.js"></script>

<script>
    QUnit.test("Phase properties Planning (start)", function(assert)
    {
        var phase = Phase.PLANNING_START;
        var properties = Phase.properties[phase];
        assert.equal(properties.displayName, "Planning (start)");
        assert.equal(properties.value, "planningStart");
    });

    QUnit.test("Phase properties Activation (execute maneuver)", function(
            assert)
    {
        var phase = Phase.ACTIVATION_EXECUTE_MANEUVER;
        var properties = Phase.properties[phase];
        assert.equal(properties.displayName, "Activation (execute maneuver)");
        assert.equal(properties.value, "activationExecuteManeuver");
    });

    QUnit.test("Phase.values()", function(assert)
    {
        assert.ok(Phase.values);
        assert.equal(Phase.values.length, 17);
        assert.equal(Phase.values[0], Phase.PLANNING_START);
        assert.equal(Phase.values[16], Phase.END_END);
    });
</script>
</head>
<body>
	<div id="qunit"></div>
</body>
</html>
